package web.filemanager.service;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import web.filemanager.model.FileData;
import web.filemanager.repository.FileDataRepository;
@Service
public class FileDataService {

    private final FileDataRepository fileDataRepository;

    @Autowired
    public FileDataService(FileDataRepository fileDataRepository) {
        this.fileDataRepository = fileDataRepository;
    }

    public void saveFileData(FileData fileData) {
        fileDataRepository.save(fileData);
    }
}